﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chanjet.TP.OpenAPI.Demo
{
     public class Inventory
    {
        public string Code { get; set; }
        public string Name { get; set; }
        public string Shorthand { get; set; }
        public string Specification { get; set; }
        public string DefaultBarCode { get; set; }
        public BaseModel1 InventoryClass { get; set; }
        public BaseModel2 ProductInfo { get; set; }
        public string Disabled { get; set; }
        public string IsPurchase { get; set; }
        public string IsSale { get; set; }
        public string IsMadeSelf { get; set; }
        public string IsMaterial { get; set; }
        public string IsSuite { get; set; }
        public string IsLaborCost { get; set; }
        public BaseModel3 Unit { get; set; }
        public bool IsSingleUnit { get; set; }
        public BaseModel3 UnitGroup { get; set; }
        public BaseModel1 ValueType { get; set; }
        public BaseModel1 UnitType { get; set; }
        public BaseModel3 UnitByPurchase { get; set; }
        public BaseModel3 UnitBySale { get; set; }
        public BaseModel3 UnitByRetail { get; set; }
        public BaseModel3 UnitByStock { get; set; }
        public BaseModel3 UnitByManufacture { get; set; }
        public BaseModel3 SubUnitByReport { get; set; }

        public List<InvUnitPriceDTO> InvUnitPriceDTOs { get; set; }
    }
    public class InvUnitPriceDTO
    {
        public BaseModel3 Unit { get; set; }
        public string rateOfExchange { get; set; }
    }

    public class InventoryDTO
    {
        public Inventory dto { get; set; }
    }
}
